package com.gt.web.srv.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应枚举
 *
 * @author yuchaohua
 */
@Getter
@AllArgsConstructor
public enum RespEnum {
    SUCCESS(200, "success"),
    ERROR(500, "error"),
    RESPONSE_CODE_SYSTEM_ERROR(1500, "系统内部异常"),
    RESPONSE_CODE_PARAM_ERROR(1002, "参数格式错误"),
    RESPONSE_CODE_PARAM_NO(1001, "必传参数为空"),
    RESPONSE_EROOR_MODE(1003, "不支持该请求方式"),
    RESPONSE_CODE_TOO_LARG(1026, "文件大小超出限制"),
    RESPONSE_CODE_NO_PERMISSION(1401, "无权访问该系统,请提供令牌信息."),
    RESPONSE_CODE_USER_ERROR(1402, "用户信息无效,请提供有效用户信息."),
    FAILURE(500, "failure");

    private Integer code;
    private String desc;

}
